/*
 * @Author: 尔尔
 * @Date: 2023-12-15 11:28:16
 * @LastEditors: “Jackson” “1145239633@qq.com”
 * @LastEditTime: 2025-07-18 10:40:24
 * @FilePath: \ERP\src\api\selectList.js
 * @filePurpose:
 */
// 下拉选
import request from "@/utils/request"

// 查询设备类型列表
export function getDeviceTypeList(query) {
	return request({
		url: "/erp/selectDown/deviceTypeList",
		method: "get",
		params: query
	})
}

// 查询辅助耗材类型列表
export function getAuxiliaryTypeList(query) {
	return request({
		url: "/erp/selectDown/auxiliaryConsumablesTypeList",
		method: "get",
		params: query
	})
}

// 查询客户列表
export function clientList(params) {
	return request({
		url: "/erp/selectDown/clientList",
		method: "get",
		params
	})
}

// 查询用户列表
export function getUserList(params) {
	return request({
		url: "/erp/selectDown/userDown",
		method: "get",
		params
	})
}

// 综合管理查询用户列表
export function getUserList3(params) {
	return request({
		url: "/erp/selectDown/userDown3",
		method: "get",
		params
	})
}


// 接收人
export function userDown3(params) {
	return request({
		url: "/erp/selectDown/userDown3",
		method: "get",
		params
	})
}

// 合格证接收人
export function userDown4(params) {
	return request({
		url: "/erp/selectDown/userDown4",
		method: "get",
		params
	})
}
// 综合部部长、综合部职员
export function userDown2(params) {
	return request({
		url: "/erp/selectDown/userDown2",
		method: "get",
		params
	})
}

// 查询角色列表
export function roleDown(params) {
	return request({
		url: "/erp/selectDown/roleDown",
		method: "get",
		params
	})
}

// 查询产品工序步骤零组件列表
export function productProcessStepPart(params) {
	return request({
		url: "/erp/selectDown/productProcessStepPart",
		method: "get",
		params
	})
}

// 查询工段列表
export function workshopSectionlist(params) {
	return request({
		url: "/erp/selectDown/workshopSectionlist",
		method: "get",
		params
	})
}

// 根据返修单产品id查询产品零组件列表
export function productPart(id) {
	return request({
		url: "/erp/selectDown/productPart/" + id,
		method: "get"
	})
}

// 根据产品id查询产品零组件列表
export function productPart1(id) {
	return request({
		url: "/erp/selectDown/productPart1/" + id,
		method: "get"
	})
}

// 附件字典下拉框
export function fileoption(params) {
	return request({
		url: "/TFileDictData/TFileDictData/fileoption",
		method: "get",
		params
	})
}

// 根据工段查询人员下拉选
export function sectionUser(workshopSectionId) {
	return request({
		url: "/erp/selectDown/sectionUser/" + workshopSectionId,
		method: "get"
	})
}

export function sectionUser1() {
	return request({
		url: "/erp/selectDown/sectionUser1",
		method: "get"
	})
}



// 根据工段人员下拉选
export function getworkerList() {
	return request({
		url: "/erp/packag/workerList",
		method: "get"
	})
}

// 根据工段人员下拉选
export function getworkerList1() {
	return request({
		url: "/erp/packag/workerList1",
		method: "get"
	})
}

// 获取显隐列

export function getcolumn(params) {
	return request({
		url: "/column",
		method: "get",
		params
	})
}

// 修改显隐列
export function updatecolumn(menuNames,data) {
	return request({
		url: `/column?pageName=${menuNames}`,
		method: "post",
		data
	})
}



//根据角色查询
export function allocatedList() {
	return request({
		url: "/system/role/authUser/allocatedList?roleId=18",
		method: "get"
	})
}

//  字典接口


export function dictList(params) {
	return request({
		url: "system/dict/data/list",
		method: "get",
    params
	})
}
